package com.excel.service.gernerate;


import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import java.util.Date;

/**
 * 广告报价单 + 媒体点位表 导出
 * @author lhlong
 *
 */
@XmlAccessorType(XmlAccessType.FIELD)
public class OrderScrenAdvertisementCollection {
	
	@XmlElement(name="City")
	private String city;//发布城市
	
	@XmlElement(name="Vecteur_tags")
	private String vecteurTags;//媒体类别
	
	@XmlElement(name="ShowSize")
	private Double showSize; //播放尺寸(展示尺寸) 
	
	@XmlElement(name="MinSalePeriod")
	private Integer minSalePeriod;//投放周期
	
	@XmlElement(name="Frequency")
	private Integer frequency; //播放频次
	
	@XmlElement(name="TimeLength")
	private Integer timeLength;//广告时长(秒数)
	
	@XmlElement(name="Size")
	private Double size;//屏幕尺寸
	
	@XmlElement(name="SinglePointNUM")
	private Integer singlePointNUM;//播放屏幕数
	
	@XmlElement(name="PeriodicalPrice")
	private Double periodicalPrice;//日刊例价
	
	@XmlElement(name="Price")
	private Double price;//总刊例价
	
	@XmlElement(name="Total")
	private Double total;
	
	@XmlElement(name="AllowPlayAudio")
	private Boolean allowPlayAudio;//播放方式,1是视屏，0是静屏
	
	@XmlElement(name="PublishTime")
	private String publishTime;//上刊时间(待定数据)
	
	@XmlElement(name="Start_Date")
	private Date startDate;//上刊时间
	
	@XmlElement(name="End_Date")
	private Date endDate;//下刊时间
	
	@XmlElement(name="Cirle_Times")
	private Integer cirleTimes;//循环次数
	
	@XmlElement(name="Is_Outdoor")
	private Boolean isOutdoor;//是否为户外

	@XmlElement(name="MIN_SALE_PERIOD_TIMES")
	private Integer minSalePeriodTimes;//销售周期的倍数
	
	/** 是否全屏；1-表示全屏、0-表示非全屏；默认全屏*/
	@XmlElement(name="IsFullScreen")
	private Boolean isFullScreen;//是否为全屏

	public OrderScrenAdvertisementCollection() {
		super();
	}




	public OrderScrenAdvertisementCollection(String city, String vecteurTags, Double showSize, Integer minSalePeriod,
                                             Integer frequency, Integer timeLength, Double size, Integer singlePointNUM, Double periodicalPrice,
                                             Double price, Double total, Boolean allowPlayAudio, String publishTime, Date startDate, Date endDate,
                                             Integer cirleTimes, Boolean isOutdoor, Boolean isFullScreen, Integer minSalePeriodTimes) {
		super();
		this.city = city;
		this.vecteurTags = vecteurTags;
		this.showSize = showSize;
		this.minSalePeriod = minSalePeriod;
		this.frequency = frequency;
		this.timeLength = timeLength;
		this.size = size;
		this.singlePointNUM = singlePointNUM;
		this.periodicalPrice = periodicalPrice;
		this.price = price;
		this.total = total;
		this.allowPlayAudio = allowPlayAudio;
		this.publishTime = publishTime;
		this.startDate = startDate;
		this.endDate = endDate;
		this.cirleTimes = cirleTimes;
		this.isOutdoor = isOutdoor;
		this.isFullScreen = isFullScreen;
		this.minSalePeriodTimes = minSalePeriodTimes;
	}









	public String getCity() {
		return city;
	}



	public void setCity(String city) {
		this.city = city;
	}




	public String getVecteurTags() {
		return vecteurTags;
	}



	public void setVecteurTags(String vecteurTags) {
		this.vecteurTags = vecteurTags;
	}




	public Double getShowSize() {
		return showSize;
	}



	public void setShowSize(Double showSize) {
		this.showSize = showSize;
	}



	public Integer getMinSalePeriod() {
		return minSalePeriod;
	}



	public void setMinSalePeriod(Integer minSalePeriod) {
		this.minSalePeriod = minSalePeriod;
	}



	public Integer getFrequency() {
		return frequency;
	}



	public void setFrequency(Integer frequency) {
		this.frequency = frequency;
	}



	public Integer getTimeLength() {
		return timeLength;
	}



	public void setTimeLength(Integer timeLength) {
		this.timeLength = timeLength;
	}



	public Double getSize() {
		return size;
	}



	public void setSize(Double size) {
		this.size = size;
	}



	public Integer getSinglePointNUM() {
		return singlePointNUM;
	}



	public void setSinglePointNUM(Integer singlePointNUM) {
		this.singlePointNUM = singlePointNUM;
	}



	public Double getPeriodicalPrice() {
		return periodicalPrice;
	}



	public void setPeriodicalPrice(Double periodicalPrice) {
		this.periodicalPrice = periodicalPrice;
	}



	public Double getPrice() {
		return price;
	}



	public void setPrice(Double price) {
		this.price = price;
	}



	public Double getTotal() {
		return total;
	}



	public void setTotal(Double total) {
		this.total = total;
	}



	public Boolean getAllowPlayAudio() {
		return allowPlayAudio;
	}



	public void setAllowPlayAudio(Boolean allowPlayAudio) {
		this.allowPlayAudio = allowPlayAudio;
	}



	public String getPublishTime() {
		return publishTime;
	}



	public void setPublishTime(String publishTime) {
		this.publishTime = publishTime;
	}







	public Date getStartDate() {

//		return ScreenUtils.countStartDateByPublish(startDate,this.getPublishTime()).get(0);
		return startDate;
	}


	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}







	public Date getEndDate() {

	return endDate;
//		return  ScreenUtils.countEndDateByPublish(startDate,endDate,this.getPublishTime(),this.getMinSalePeriod(),this.getMinSalePeriodTimes());
	}



	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}



	public Integer getCirleTimes() {
		return cirleTimes;
	}


	public void setCirleTimes(Integer cirleTimes) {
		this.cirleTimes = cirleTimes;
	}



	public Boolean getIsOutdoor() {
		return isOutdoor;
	}



	public void setIsOutdoor(Boolean isOutdoor) {
		this.isOutdoor = isOutdoor;
	}




	public Boolean getIsFullScreen() {
		return isFullScreen;
	}

	public void setIsFullScreen(Boolean isFullScreen) {
		this.isFullScreen = isFullScreen;
	}

	public Integer getMinSalePeriodTimes() {
		return minSalePeriodTimes;
	}

	public void setMinSalePeriodTimes(Integer minSalePeriodTimes) {
		this.minSalePeriodTimes = minSalePeriodTimes;
	}

	public Boolean getOutdoor() {
		return isOutdoor;
	}

	public void setOutdoor(Boolean outdoor) {
		isOutdoor = outdoor;
	}

	public Boolean getFullScreen() {
		return isFullScreen;
	}

	public void setFullScreen(Boolean fullScreen) {
		isFullScreen = fullScreen;
	}
}
